<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h2>Rest风格的请求</h2>
	<a href="rest/user/3">查询用户</a><br>
	<hr>
	<form action="rest/user" method="post">
		编码：<input type="text" name="id"><br>
		姓名：<input type="text" name="name"><br>
		<input type="submit" value="新增">
	</form>
	<hr>
	<form action="rest/user" method="post">
		<input type="hidden" name="_method" value="PUT">
		编码：<input type="text" name="id"><br>
		姓名：<input type="text" name="name"><br>
		<input type="submit" value="修改">
	</form>	
	<hr>
	<form action="rest/user" method="post">
		<input type="hidden" name="_method" value="DELETE">
		<input type="hidden" name="id" value="3"><br>
		<input type="submit" value="删除">
	</form>	
	<hr>
	<a href="rest/user?id=3">查询用户</a><br>
	<hr>
</body>
</html>